package com.jielihaofeng.cosmic;

import com.jielihaofeng.cosmic.form.control.Button;
import com.jielihaofeng.cosmic.form.plugin.AbstractFormPlugin;

/**
 * @author Johnnie Wind
 * @description
 * @date 2021/11/29 11:30
 */
public class Test {
    public static void main(String[] args) {

        // 创建一个 test 按钮
        Button button = new Button("test");

        // 构建表单插件
        AbstractFormPlugin abstractFormPlugin = new AbstractFormPlugin();
        abstractFormPlugin.initializeControl(button);
        abstractFormPlugin.addClickListeners("test");

        // 触发点击
        button.click();
    }
}
